<!-- App.vue 或任意组件 -->
<template>
    <Form :battle_data="battle_data" />
    <WatchEff v-model="input"/>
</template>

<script setup>
import Form from './components/index.vue'
import WatchEff from './components/watch.vue'
import { ref, watch, reactive, watchPostEffect, watchEffect } from 'vue'
const battle_data = ref(null)
const input = ref('')  // 用于 v-model 绑定
watch(input, (newVal) => {
    console.log('Input changed:', newVal)
})
</script>
